package com.yangoxix.lovegoing.mapper;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yangoxix.lovegoing.pojo.AuditPublisher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AuditPublisherMapper extends BaseMapper<AuditPublisher> {

    @Select("select COUNT(*) from auditpublisher where username = #{username} limit 1")
    boolean isAuditingByUsername(@Param("username") String username);

}
